package com.youlai.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.entity.ProductCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.system.model.query.CategoryPageQuery;
import com.youlai.system.model.vo.CategoryPageVo;
import com.youlai.system.model.vo.CategoryTreeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author zzps
* @description 针对表【t_product_category(商品种类表)】的数据库操作Mapper
* @createDate 2024-03-11 10:03:59
* @Entity com.youlai.system.model.entity.ProductCategory
*/
@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {

    IPage<CategoryPageVo> getCategoryPageList(Page<CategoryPageVo> page, @Param("query") CategoryPageQuery categoryPageQuery);

    List<CategoryTreeVo> getCategoryTree();

    List<CategoryPageVo> getCategoryByLevel(Integer level);
}




